package cn.dubito.miaosha.redis;

/**
 * @author liliang
 * @description:
 * @date 2018/4/11.
 */
public class SeckillKey extends BasePrefix {

    /**
     * 是否结束
     */
    private static final String ISOVER = "isOver";
    private static final String SECKILL_PATH = "seckillPath";
    private static final String SECKILL_CODE = "seckillCode";
    private static final int ISOVER_SECOND = 0;
    private static final int SECKILL_PATH_SECOND = 60;
    private static final int SECKILL_CODE_SECOND = 300;

    public SeckillKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static SeckillKey isOver = new SeckillKey(ISOVER_SECOND, ISOVER);
    public static SeckillKey getSeckillPath = new SeckillKey(SECKILL_PATH_SECOND, SECKILL_PATH);
    public static SeckillKey getSeckillVerifyCode = new SeckillKey(SECKILL_CODE_SECOND, SECKILL_CODE);
}
